

#pragma once

#include <cmath>
#include <cstdlib>
#include <ctime>

#include "LuaEng.h"

class Aleatorio
{
public:

	//! Returns a random number within the specified range [min, max] (both included).
	//!
	//! @param min Minimum	
	//! @param max Maximum
	static int GetNumero(int min, int max)
	{
		int rango = max - min;
		int numal = rand() % (rango + 1);
		return min + numal;
	}
};


namespace
{
	struct AleatorioInicializador
	{
		AleatorioInicializador()
		{
			std::srand(std::time(0));
		}
	};
}